<template>
  <div class="pad-20 bgc-default">
    <div class="tab-sticky">
      <el-tabs v-model="brandType">
        <el-tab-pane label="总部套餐" name="0"></el-tab-pane>
        <el-tab-pane label="分销套餐" name="1"></el-tab-pane>
      </el-tabs>
    </div>
    <div class="bg-color-white mar-t-20">
      <template v-if="brandType === '0'">
        <enterprise-combo></enterprise-combo>
      </template>
      <template v-if="brandType === '1'">
        <distribution-combo></distribution-combo>
      </template>
    </div>
  </div>
</template>

<script>
  import enterpriseCombo from './enterprise-combo'
  import distributionCombo from './distribution-combo'
  export default {
    components: { enterpriseCombo, distributionCombo },
    data() {
      return {
        brandType: '0'
      }
    }
  }
</script>

<style lang='less' scoped>
  .user-avatar {
    width: 68px;
    height: 68px;
    display: block;
    padding: 1px;
    border: #efefef 1px solid;
  }
  .tab-sticky {
    position: sticky;
    top: 0px;
    left: 20px;
    width: calc(100% + 40px);
    background: white;
    z-index: 1000;
    padding-top: 10px;
    padding-left: 17px;
    margin-left: -20px;
    margin-top: -20px;
    /deep/ .el-tabs__header{
      margin: 0;
    }
  }
</style>
